package services;

import dao.ISale;
import factory.SaleDaoFactory;
import vo.Sale;

import java.util.List;

public class SaleServicempl implements ISaleService{
    ISale iSale= SaleDaoFactory.getInstance();//获取具体操作类的对象
    @Override
    public boolean add(Sale sale) {
        return iSale.add(sale);
    }

    @Override
    public boolean delete(Sale sale) {
        return iSale.delete(sale);
    }

    @Override
    public boolean modify(Sale sale) {
        return iSale.modify(sale);
    }

    @Override
    public Sale getcustombyid(String id) {
        return iSale.getcustombyid(id);
    }

    @Override
    public List<Sale> getall() {
        return iSale.getall();
    }
}
